#ifndef DEF_STATE
#define DEF_STATE

#include <QStringList>

class Player;

class State
{
    public:
        State(const QString& name);
        void setPlayer(Player* player);
        Player* player() const { return m_player; }
        const QStringList& connexions() const { return m_connexions; }
        const QString& name() const {return m_name; }
        const QString& continent() const {return m_continent; }
        void addTroops(size_t n) { m_troops += n;}
        size_t troops() const { return m_troops; }
        void delTroops(size_t n) { m_troops -= n;}

    private:

        bool m_flag;

        QString m_name;
        QString m_continent;
        QStringList m_connexions;

        size_t m_troops;

        Player* m_player;
};

#endif
